<?php
//dezend by http://www.yunlu99.com/ QQ:270656184
defined('BASEPATH') || exit('No direct script access allowed');
class Money extends MY_Controller
{
	public function __construct()
	{
		parent::__construct();
		$this->verify_user();
	}

	public function index()
	{
		$d['xnb'] = $this->d->rows(array('table' => 'xnb', 'where' => 'user_id=' . $this->user['id']));

		foreach ($d['xnb'] as $k => $v) {
			$d['xnb'][$k]['coin'] = $this->d->find(array('table' => 'coin', 'where' => 'id=' . $v['coin_id']));
		}

		$this->show(array('header', 'user_left', 'money', 'footer'), $d);
	}
}

?>
